public class TestRef {
 
    public static void main(String[] argvc) {
        String test = "Hello World!";
        changeIt(test);
        System.out.println("After change : " + test);
    }
 
    static void changeIt(String value) {
        value = "Hello!";
    }
}